import Vue from 'vue'
import App from './App.vue'
import router from './routers' // router 名称不能改
import store from './stores' // store 名称不能改

import Meta from 'vue-meta' //头部处理库
Vue.use(Meta)

// 全局工具库
// import utilCommon from './utils/common/shuizhubocaiutil.utils/util.js'

// 全局http和url
import http from './http/myHttp.js'
import url from './http/url.js'
Vue.prototype.$http = http
Vue.prototype.$urls = url

// 页面加载完成全局事件
import loadend from "./services/loadEnd.service.js"
Vue.prototype.$loadend = loadend

// 全局Debug console.log
// import delog from "./services/delog.js"
// Vue.prototype.$delog = delog

// 全局事件总线
Vue.prototype.$EventBus = new Vue()

// 全局mixin
import global from './mixins/global.mixin.js'
Vue.mixin(global)

// 真机调试工具
import VConsole from 'vconsole'
if (process.env.NODE_ENV == 'development') {
  window.vConsole = new VConsole();
} else {
  // 正式环境测试用，到生产环境时请屏蔽
  window.vConsole = new VConsole();
}

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')